CREATE TABLE [dbo].[TMREGI_ELIM]
(
[CO_EMPR] [dbo].[TD_VC_002] NOT NULL,
[NU_CORR] [int] NOT NULL IDENTITY(1, 1),
[CO_TABL_ORIG] [dbo].[TD_IN_001] NOT NULL CONSTRAINT [DF__TMREGI_EL__CO_TA__0FF747D5] DEFAULT ((0)),
[DE_TABL_ORIG] [dbo].[TD_VC_100] NOT NULL,
[CO_CLAV_TAOR] [dbo].[TD_VC_100] NOT NULL,
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TMREGI_EL__CO_US__10EB6C0E] DEFAULT (suser_sname()),
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TMREGI_EL__FE_US__11DF9047] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TMREGI_EL__CO_US__12D3B480] DEFAULT (suser_sname()),
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TMREGI_EL__FE_US__13C7D8B9] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TMREGI_ELIM] ADD CONSTRAINT [PK__TMREGI_E__FA5A84206C4EE43C] PRIMARY KEY CLUSTERED  ([CO_EMPR], [NU_CORR]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TMREGI_ELIM] ADD CONSTRAINT [FK__TMREGI_EL__CO_EM__147CD127] FOREIGN KEY ([CO_EMPR]) REFERENCES [dbo].[TMPARA_TESO] ([CO_EMPR])
GO
